// Copyright 2008 web2me.dev
//
//   Licensed under the Apache License, Version 2.0 (the "License");
//   you may not use this file except in compliance with the License.
//   You may obtain a copy of the License at
//
//       http://www.apache.org/licenses/LICENSE-2.0
//
//   Unless required by applicable law or agreed to in writing, software
//   distributed under the License is distributed on an "AS IS" BASIS,
//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//   See the License for the specific language governing permissions and
//   limitations under the License.

package net.web2me.api.util.multiurl;

/**
 * It's the combination of the URL obtained after a pattern parsing.<br>
 * This class holds one URL and the pattern part that has matched
 * @author testing
 *
 */
public class MultiUrl {
	
	private String url;
	
	private String matchedPattern;

	/**
	 * Gets the URL
	 * @return
	 */
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * Gets the pattern that matched for the URL.<br>
	 * Example, for this URL pattern:<br>
	 * <pre>
	 * http:www.some.com/gid=[100-200]
	 * </pre>
	 * One possible match would be:
	 * <pre>
	 * http:www.some.com/gid=130
	 * </pre>
	 * For that case, the pattern matched is <strong>130</strong>.
	 * <p>
	 * This is usefull if you want to use that information for
	 * folder organization on a batch download.
	 * </p>
	 * @return The matched pattern
	 */
	public String getMatchedPattern() {
		return matchedPattern;
	}

	public void setMatchedPattern(String matchedPattern) {
		this.matchedPattern = matchedPattern;
	}

}
